const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
    const db = cloud.database({
        env: 'dev-d62e0'
    })
    let result = {}

    const {
        id,
    } = event

    let res = await db.collection('rss_item').where({
        _id: id
    }).get()
    return res
}